/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaDeIncioDeSecion.java
 *
 * Created on May 2, 2010, 7:16:58 PM
 */


package View;

import java.awt.Image;
import java.awt.Toolkit;





/**
 *
 * @author Scott
 */
public class VentanaDeIncioDeSecion extends javax.swing.JFrame {

    /** Creates new form VentanaDeIncioDeSecion */
    public VentanaDeIncioDeSecion() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new View.panelDefondo("fondo.jpg")
        ;
        jP_Lateral = new View.panelDefondo("fondo3.png");
        jL_Usu = new javax.swing.JLabel();
        jT_Usuario = new javax.swing.JTextField();
        jPas_clave = new javax.swing.JPasswordField();
        jL_Clv = new javax.swing.JLabel();
        jB_iniciar = new javax.swing.JButton();
        jB_cancelar = new javax.swing.JButton();
        jL_TituloSAT = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setIconImage(getIconImage());
        setResizable(false);

        jP_Lateral.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_LateralLayout = new javax.swing.GroupLayout(jP_Lateral);
        jP_Lateral.setLayout(jP_LateralLayout);
        jP_LateralLayout.setHorizontalGroup(
            jP_LateralLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 291, Short.MAX_VALUE)
        );
        jP_LateralLayout.setVerticalGroup(
            jP_LateralLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 71, Short.MAX_VALUE)
        );

        jL_Usu.setForeground(new java.awt.Color(255, 255, 255));
        jL_Usu.setText("Usuario");

        jT_Usuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jT_UsuarioActionPerformed(evt);
            }
        });

        jPas_clave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jPas_claveActionPerformed(evt);
            }
        });

        jL_Clv.setForeground(new java.awt.Color(255, 255, 255));
        jL_Clv.setText("Clave");

        jB_iniciar.setText("Iniciar");
        jB_iniciar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_iniciarActionPerformed(evt);
            }
        });

        jB_cancelar.setText("Cancelar");
        jB_cancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_cancelarActionPerformed(evt);
            }
        });

        jL_TituloSAT.setFont(new java.awt.Font("Microsoft Tai Le", 3, 24));
        jL_TituloSAT.setText("S.A.T");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jL_Usu, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jT_Usuario, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jL_Clv, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPas_clave, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jB_iniciar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jB_cancelar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addComponent(jL_TituloSAT, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(109, Short.MAX_VALUE))
            .addComponent(jP_Lateral, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jP_Lateral, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jL_Usu)
                .addGap(5, 5, 5)
                .addComponent(jT_Usuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jL_Clv)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPas_clave, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_iniciar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_cancelar))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(17, 17, 17)
                        .addComponent(jL_TituloSAT, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-307)/2, (screenSize.height-282)/2, 307, 282);
    }// </editor-fold>//GEN-END:initComponents

    private void jT_UsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jT_UsuarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jT_UsuarioActionPerformed

    private void jB_cancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_cancelarActionPerformed
       this.jPas_clave.setText("");
       this.jT_Usuario.setText("");
    }//GEN-LAST:event_jB_cancelarActionPerformed

    private void jB_iniciarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_iniciarActionPerformed
      new VentanaDeOperadorSAT().setVisible(true);
      this.dispose();
    }//GEN-LAST:event_jB_iniciarActionPerformed

    private void jPas_claveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jPas_claveActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jPas_claveActionPerformed

    /**
    * @param args the command line arguments
    */
 
    @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().
                getImage(ClassLoader.getSystemResource("View/taxis [1600x1200].png"));


        return retValue;
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB_cancelar;
    private javax.swing.JButton jB_iniciar;
    private javax.swing.JLabel jL_Clv;
    private javax.swing.JLabel jL_TituloSAT;
    private javax.swing.JLabel jL_Usu;
    private javax.swing.JPanel jP_Lateral;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPasswordField jPas_clave;
    private javax.swing.JTextField jT_Usuario;
    // End of variables declaration//GEN-END:variables

}
